import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [vue()],
    server: {
        host: "0.0.0.0",
        proxy: {
            '/api': 'http://43.139.146.196:3106/',
            // 代理websocket
            '/api/ws': {
                target: "ws://43.139.146.196:3106",
                ws: true,
            }
        },
    }
})
